﻿<UserControl x:Class="OnlineVideos.VideoGameGallery"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
             mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480" Loaded="UserControl_Loaded">
    
    <Grid x:Name="LayoutRoot">
        <ListBox x:Name="lbxgallery"  Grid.Row="0" SelectionChanged="lbxgallery_SelectionChanged" Foreground="White">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Margin="10,12,0,0" Height="130"  Orientation="Horizontal" VerticalAlignment="Top">
                        <Image  x:Name="imgMovie" Source="{Binding GalleryImage}" VerticalAlignment="Top" Width="100" Height="130" />
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <toolkit:PerformanceProgressBar VerticalAlignment="Top" x:Name="MyProgressBar1" Tag="{Binding Link}"  
                                                 IsIndeterminate="False"  Width="450"  Background="Black" Foreground="Red" HorizontalAlignment="Left">
        </toolkit:PerformanceProgressBar>
        <Canvas>
            <TextBlock Canvas.Top="200" Canvas.Left="80" FontSize="28" x:Name="tblkgallery" Text="No gallery available" Visibility="Collapsed"/>
        </Canvas>

    </Grid>
</UserControl>
